package com.bytz.modules.cms.order.model;

import com.bytz.modules.cms.order.entity.Order;
import com.bytz.modules.cms.order.entity.OrderFlowRuleTestCase;
import com.bytz.modules.cms.order.entity.OrderItem;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 订单流程规则测试用例
 * @author shanxuezhong
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderFlowRuleTestCaseSaveRo extends OrderFlowRuleTestCase {

    @ApiModelProperty("订单")
    @NotNull(message = "订单不能为空")
    private AdminOrderModel order;

    @ApiModelProperty("订单项")
    private List<OrderItemModel> orderItems;
}